Edit the agent's mission, instructions and business context
curl --request PATCH \
--url https://api.atako.ai/agents/{id}/instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mission": "<string>",
"instructions": "<string>",
"businessContext": "<string>"
}
'import requests
url = "https://api.atako.ai/agents/{id}/instructions"
payload = {
"mission": "<string>",
"instructions": "<string>",
"businessContext": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mission: '<string>', instructions: '<string>', businessContext: '<string>'})
};
fetch('https://api.atako.ai/agents/{id}/instructions', 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.atako.ai/agents/{id}/instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'mission' => '<string>',
'instructions' => '<string>',
'businessContext' => '<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://api.atako.ai/agents/{id}/instructions"
payload := strings.NewReader("{\n \"mission\": \"<string>\",\n \"instructions\": \"<string>\",\n \"businessContext\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.atako.ai/agents/{id}/instructions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mission\": \"<string>\",\n \"instructions\": \"<string>\",\n \"businessContext\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atako.ai/agents/{id}/instructions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mission\": \"<string>\",\n \"instructions\": \"<string>\",\n \"businessContext\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"mission": "<string>",
"instructions": "<string>",
"businessContext": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Agents
Edit the agent's mission, instructions and business context
Owner of the agent, or an admin of the owner’s company. A plain teammate (who can still view and chat with the agent) gets 404. Each field is optional: absent = unchanged, null or blank = cleared, otherwise trimmed (≤ 20 000 characters). At least one field is required. Nothing is pushed: the agent re-reads its profile every turn.
PATCH
/
agents
/
{id}
/
instructions
Edit the agent's mission, instructions and business context
curl --request PATCH \
--url https://api.atako.ai/agents/{id}/instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mission": "<string>",
"instructions": "<string>",
"businessContext": "<string>"
}
'import requests
url = "https://api.atako.ai/agents/{id}/instructions"
payload = {
"mission": "<string>",
"instructions": "<string>",
"businessContext": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mission: '<string>', instructions: '<string>', businessContext: '<string>'})
};
fetch('https://api.atako.ai/agents/{id}/instructions', 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.atako.ai/agents/{id}/instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'mission' => '<string>',
'instructions' => '<string>',
'businessContext' => '<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://api.atako.ai/agents/{id}/instructions"
payload := strings.NewReader("{\n \"mission\": \"<string>\",\n \"instructions\": \"<string>\",\n \"businessContext\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.atako.ai/agents/{id}/instructions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mission\": \"<string>\",\n \"instructions\": \"<string>\",\n \"businessContext\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atako.ai/agents/{id}/instructions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mission\": \"<string>\",\n \"instructions\": \"<string>\",\n \"businessContext\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"mission": "<string>",
"instructions": "<string>",
"businessContext": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
An aik_… programmatic API key (app.atako.ai → Settings → API keys) or a Supabase session JWT.
Path Parameters
Agent id
Body
application/json