Update revision config (any revision, in place)
Apply config updates to any revision in place.
curl --request PATCH \
--url https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"base_version": 123,
"persona": "<string>",
"system_prompt": "<string>",
"system_context_variables": [
{
"name": "<string>",
"enum_values": [
"<string>"
],
"description": "<string>"
}
],
"context_variables": [
{
"name": "<string>",
"enum_values": [
"<string>"
],
"description": "<string>",
"source": "system",
"reask_cap": null
}
],
"variable_defaults": {},
"channel_specific_config": {},
"router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"analyzer_model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"workflow_enabled": false,
"memory_enabled": true,
"current_time": {
"enabled": true,
"timezone": "<string>"
},
"kb_clearance_level": 123,
"kb_audience_tags": [
"<string>"
],
"tool_refs": [
{
"id": "<string>",
"slug": "<string>",
"output_bindings": {},
"input_defaults": {}
}
],
"knowledge_base_refs": [
{
"id": "<string>",
"description": "<string>",
"clearance_level": 123
}
],
"platform_tools": {},
"continue_after_flow": true
}
'import requests
url = "https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}"
payload = {
"base_version": 123,
"persona": "<string>",
"system_prompt": "<string>",
"system_context_variables": [
{
"name": "<string>",
"enum_values": ["<string>"],
"description": "<string>"
}
],
"context_variables": [
{
"name": "<string>",
"enum_values": ["<string>"],
"description": "<string>",
"source": "system",
"reask_cap": None
}
],
"variable_defaults": {},
"channel_specific_config": {},
"router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": ["<string>"],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"analyzer_model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": ["<string>"],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"workflow_enabled": False,
"memory_enabled": True,
"current_time": {
"enabled": True,
"timezone": "<string>"
},
"kb_clearance_level": 123,
"kb_audience_tags": ["<string>"],
"tool_refs": [
{
"id": "<string>",
"slug": "<string>",
"output_bindings": {},
"input_defaults": {}
}
],
"knowledge_base_refs": [
{
"id": "<string>",
"description": "<string>",
"clearance_level": 123
}
],
"platform_tools": {},
"continue_after_flow": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_version: 123,
persona: '<string>',
system_prompt: '<string>',
system_context_variables: [{name: '<string>', enum_values: ['<string>'], description: '<string>'}],
context_variables: [
{
name: '<string>',
enum_values: ['<string>'],
description: '<string>',
source: 'system',
reask_cap: null
}
],
variable_defaults: {},
channel_specific_config: {},
router_config_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
model_settings: {
model: '<string>',
config: {
temperature: 1,
max_tokens: 2,
top_p: 0.5,
stop_sequences: ['<string>'],
request_timeout_ms: 10500,
thinking_budget: 2
}
},
analyzer_model_settings: {
model: '<string>',
config: {
temperature: 1,
max_tokens: 2,
top_p: 0.5,
stop_sequences: ['<string>'],
request_timeout_ms: 10500,
thinking_budget: 2
}
},
workflow_enabled: false,
memory_enabled: true,
current_time: {enabled: true, timezone: '<string>'},
kb_clearance_level: 123,
kb_audience_tags: ['<string>'],
tool_refs: [{id: '<string>', slug: '<string>', output_bindings: {}, input_defaults: {}}],
knowledge_base_refs: [{id: '<string>', description: '<string>', clearance_level: 123}],
platform_tools: {},
continue_after_flow: true
})
};
fetch('https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}', 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-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}",
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([
'base_version' => 123,
'persona' => '<string>',
'system_prompt' => '<string>',
'system_context_variables' => [
[
'name' => '<string>',
'enum_values' => [
'<string>'
],
'description' => '<string>'
]
],
'context_variables' => [
[
'name' => '<string>',
'enum_values' => [
'<string>'
],
'description' => '<string>',
'source' => 'system',
'reask_cap' => null
]
],
'variable_defaults' => [
],
'channel_specific_config' => [
],
'router_config_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'model_settings' => [
'model' => '<string>',
'config' => [
'temperature' => 1,
'max_tokens' => 2,
'top_p' => 0.5,
'stop_sequences' => [
'<string>'
],
'request_timeout_ms' => 10500,
'thinking_budget' => 2
]
],
'analyzer_model_settings' => [
'model' => '<string>',
'config' => [
'temperature' => 1,
'max_tokens' => 2,
'top_p' => 0.5,
'stop_sequences' => [
'<string>'
],
'request_timeout_ms' => 10500,
'thinking_budget' => 2
]
],
'workflow_enabled' => false,
'memory_enabled' => true,
'current_time' => [
'enabled' => true,
'timezone' => '<string>'
],
'kb_clearance_level' => 123,
'kb_audience_tags' => [
'<string>'
],
'tool_refs' => [
[
'id' => '<string>',
'slug' => '<string>',
'output_bindings' => [
],
'input_defaults' => [
]
]
],
'knowledge_base_refs' => [
[
'id' => '<string>',
'description' => '<string>',
'clearance_level' => 123
]
],
'platform_tools' => [
],
'continue_after_flow' => true
]),
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-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}"
payload := strings.NewReader("{\n \"base_version\": 123,\n \"persona\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"system_context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\"\n }\n ],\n \"context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"source\": \"system\",\n \"reask_cap\": null\n }\n ],\n \"variable_defaults\": {},\n \"channel_specific_config\": {},\n \"router_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"analyzer_model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"workflow_enabled\": false,\n \"memory_enabled\": true,\n \"current_time\": {\n \"enabled\": true,\n \"timezone\": \"<string>\"\n },\n \"kb_clearance_level\": 123,\n \"kb_audience_tags\": [\n \"<string>\"\n ],\n \"tool_refs\": [\n {\n \"id\": \"<string>\",\n \"slug\": \"<string>\",\n \"output_bindings\": {},\n \"input_defaults\": {}\n }\n ],\n \"knowledge_base_refs\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"clearance_level\": 123\n }\n ],\n \"platform_tools\": {},\n \"continue_after_flow\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"base_version\": 123,\n \"persona\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"system_context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\"\n }\n ],\n \"context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"source\": \"system\",\n \"reask_cap\": null\n }\n ],\n \"variable_defaults\": {},\n \"channel_specific_config\": {},\n \"router_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"analyzer_model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"workflow_enabled\": false,\n \"memory_enabled\": true,\n \"current_time\": {\n \"enabled\": true,\n \"timezone\": \"<string>\"\n },\n \"kb_clearance_level\": 123,\n \"kb_audience_tags\": [\n \"<string>\"\n ],\n \"tool_refs\": [\n {\n \"id\": \"<string>\",\n \"slug\": \"<string>\",\n \"output_bindings\": {},\n \"input_defaults\": {}\n }\n ],\n \"knowledge_base_refs\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"clearance_level\": 123\n }\n ],\n \"platform_tools\": {},\n \"continue_after_flow\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"base_version\": 123,\n \"persona\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"system_context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\"\n }\n ],\n \"context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"source\": \"system\",\n \"reask_cap\": null\n }\n ],\n \"variable_defaults\": {},\n \"channel_specific_config\": {},\n \"router_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"analyzer_model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"workflow_enabled\": false,\n \"memory_enabled\": true,\n \"current_time\": {\n \"enabled\": true,\n \"timezone\": \"<string>\"\n },\n \"kb_clearance_level\": 123,\n \"kb_audience_tags\": [\n \"<string>\"\n ],\n \"tool_refs\": [\n {\n \"id\": \"<string>\",\n \"slug\": \"<string>\",\n \"output_bindings\": {},\n \"input_defaults\": {}\n }\n ],\n \"knowledge_base_refs\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"clearance_level\": 123\n }\n ],\n \"platform_tools\": {},\n \"continue_after_flow\": true\n}"
response = http.request(request)
puts response.read_body{
"revision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"system_context_variables": [
{
"name": "<string>",
"type": "string",
"enum_values": [
"<string>"
],
"description": "<string>"
}
],
"description": "<string>",
"persona": "<string>",
"system_prompt": "<string>",
"context_variables": [
{
"name": "<string>",
"type": "string",
"source": "derived",
"enum_values": [
"<string>"
],
"reask_cap": 123,
"description": "<string>"
}
],
"variable_defaults": {},
"tool_refs": [
{}
],
"knowledge_base_refs": [
{}
],
"platform_tools": {},
"policies_enabled": true,
"policy_refs": [
{}
],
"channel_specific_config": {},
"router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"reasoning_effort": "none",
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"analyzer_model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"reasoning_effort": "none",
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"workflow_enabled": false,
"memory_enabled": true,
"current_time": {
"enabled": true,
"timezone": "<string>"
},
"kb_clearance_level": 123,
"kb_audience_tags": [
"<string>"
],
"continue_after_flow": true,
"voice_call_settings": {},
"created_by": "<string>",
"published_at": "2023-11-07T05:31:56Z"
},
"version": 0,
"prompt_findings": [
{
"severity": "error",
"rule_id": "<string>",
"category": "<string>",
"message": "<string>",
"node_id": "<string>",
"edge_id": "<string>",
"related_node_ids": [
"<string>"
],
"related_edge_ids": [
"<string>"
],
"source_span": {
"start_line": 123,
"start_col": 123,
"end_line": 123,
"end_col": 123,
"raw_text_excerpt": "<string>"
},
"suggested_fix": "<string>",
"related_spans": [
{
"start_line": 123,
"start_col": 123,
"end_line": 123,
"end_col": 123,
"raw_text_excerpt": "<string>"
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
Request body for PATCH /assistants/{id}/revisions/{rid} — edit any revision.
A subset of the behavioral fields that live on AgentRevision.
base_version is the optimistic-concurrency version of the revision.
If supplied, the revision's version column must match; a mismatch
raises ConflictError (409).
extra=forbid: unknown or removed fields return 422.
Show child attributes
Show child attributes
Deprecated alias for system_context_variables.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Assistant-revision override for the bound workflow analyzer; stored but inactive while the assistant has no effective workflow.
Show child attributes
Show child attributes
Run the stored workflow for this revision. Omitted leaves it unchanged; explicit null is invalid.
Enable semantic memory recall and ingestion for this revision.
One tier's optional current-time overrides.
None means inherit for that field. An empty object therefore clears the tier and inherits
both values. The API stores only non-null fields.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successful Response
Response for revision create/update — the revision + optimistic version.
Show child attributes
Show child attributes
Non-blocking authoring diagnostics for assistant persona/system-prompt mentions. Error severity does not mean an ordinary draft write failed; activation and active-revision updates block until these findings resolve.
Show child attributes
Show child attributes
Was this page helpful?
curl --request PATCH \
--url https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"base_version": 123,
"persona": "<string>",
"system_prompt": "<string>",
"system_context_variables": [
{
"name": "<string>",
"enum_values": [
"<string>"
],
"description": "<string>"
}
],
"context_variables": [
{
"name": "<string>",
"enum_values": [
"<string>"
],
"description": "<string>",
"source": "system",
"reask_cap": null
}
],
"variable_defaults": {},
"channel_specific_config": {},
"router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"analyzer_model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"workflow_enabled": false,
"memory_enabled": true,
"current_time": {
"enabled": true,
"timezone": "<string>"
},
"kb_clearance_level": 123,
"kb_audience_tags": [
"<string>"
],
"tool_refs": [
{
"id": "<string>",
"slug": "<string>",
"output_bindings": {},
"input_defaults": {}
}
],
"knowledge_base_refs": [
{
"id": "<string>",
"description": "<string>",
"clearance_level": 123
}
],
"platform_tools": {},
"continue_after_flow": true
}
'import requests
url = "https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}"
payload = {
"base_version": 123,
"persona": "<string>",
"system_prompt": "<string>",
"system_context_variables": [
{
"name": "<string>",
"enum_values": ["<string>"],
"description": "<string>"
}
],
"context_variables": [
{
"name": "<string>",
"enum_values": ["<string>"],
"description": "<string>",
"source": "system",
"reask_cap": None
}
],
"variable_defaults": {},
"channel_specific_config": {},
"router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": ["<string>"],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"analyzer_model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": ["<string>"],
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"workflow_enabled": False,
"memory_enabled": True,
"current_time": {
"enabled": True,
"timezone": "<string>"
},
"kb_clearance_level": 123,
"kb_audience_tags": ["<string>"],
"tool_refs": [
{
"id": "<string>",
"slug": "<string>",
"output_bindings": {},
"input_defaults": {}
}
],
"knowledge_base_refs": [
{
"id": "<string>",
"description": "<string>",
"clearance_level": 123
}
],
"platform_tools": {},
"continue_after_flow": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_version: 123,
persona: '<string>',
system_prompt: '<string>',
system_context_variables: [{name: '<string>', enum_values: ['<string>'], description: '<string>'}],
context_variables: [
{
name: '<string>',
enum_values: ['<string>'],
description: '<string>',
source: 'system',
reask_cap: null
}
],
variable_defaults: {},
channel_specific_config: {},
router_config_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
model_settings: {
model: '<string>',
config: {
temperature: 1,
max_tokens: 2,
top_p: 0.5,
stop_sequences: ['<string>'],
request_timeout_ms: 10500,
thinking_budget: 2
}
},
analyzer_model_settings: {
model: '<string>',
config: {
temperature: 1,
max_tokens: 2,
top_p: 0.5,
stop_sequences: ['<string>'],
request_timeout_ms: 10500,
thinking_budget: 2
}
},
workflow_enabled: false,
memory_enabled: true,
current_time: {enabled: true, timezone: '<string>'},
kb_clearance_level: 123,
kb_audience_tags: ['<string>'],
tool_refs: [{id: '<string>', slug: '<string>', output_bindings: {}, input_defaults: {}}],
knowledge_base_refs: [{id: '<string>', description: '<string>', clearance_level: 123}],
platform_tools: {},
continue_after_flow: true
})
};
fetch('https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}', 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-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}",
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([
'base_version' => 123,
'persona' => '<string>',
'system_prompt' => '<string>',
'system_context_variables' => [
[
'name' => '<string>',
'enum_values' => [
'<string>'
],
'description' => '<string>'
]
],
'context_variables' => [
[
'name' => '<string>',
'enum_values' => [
'<string>'
],
'description' => '<string>',
'source' => 'system',
'reask_cap' => null
]
],
'variable_defaults' => [
],
'channel_specific_config' => [
],
'router_config_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'model_settings' => [
'model' => '<string>',
'config' => [
'temperature' => 1,
'max_tokens' => 2,
'top_p' => 0.5,
'stop_sequences' => [
'<string>'
],
'request_timeout_ms' => 10500,
'thinking_budget' => 2
]
],
'analyzer_model_settings' => [
'model' => '<string>',
'config' => [
'temperature' => 1,
'max_tokens' => 2,
'top_p' => 0.5,
'stop_sequences' => [
'<string>'
],
'request_timeout_ms' => 10500,
'thinking_budget' => 2
]
],
'workflow_enabled' => false,
'memory_enabled' => true,
'current_time' => [
'enabled' => true,
'timezone' => '<string>'
],
'kb_clearance_level' => 123,
'kb_audience_tags' => [
'<string>'
],
'tool_refs' => [
[
'id' => '<string>',
'slug' => '<string>',
'output_bindings' => [
],
'input_defaults' => [
]
]
],
'knowledge_base_refs' => [
[
'id' => '<string>',
'description' => '<string>',
'clearance_level' => 123
]
],
'platform_tools' => [
],
'continue_after_flow' => true
]),
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-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}"
payload := strings.NewReader("{\n \"base_version\": 123,\n \"persona\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"system_context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\"\n }\n ],\n \"context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"source\": \"system\",\n \"reask_cap\": null\n }\n ],\n \"variable_defaults\": {},\n \"channel_specific_config\": {},\n \"router_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"analyzer_model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"workflow_enabled\": false,\n \"memory_enabled\": true,\n \"current_time\": {\n \"enabled\": true,\n \"timezone\": \"<string>\"\n },\n \"kb_clearance_level\": 123,\n \"kb_audience_tags\": [\n \"<string>\"\n ],\n \"tool_refs\": [\n {\n \"id\": \"<string>\",\n \"slug\": \"<string>\",\n \"output_bindings\": {},\n \"input_defaults\": {}\n }\n ],\n \"knowledge_base_refs\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"clearance_level\": 123\n }\n ],\n \"platform_tools\": {},\n \"continue_after_flow\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"base_version\": 123,\n \"persona\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"system_context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\"\n }\n ],\n \"context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"source\": \"system\",\n \"reask_cap\": null\n }\n ],\n \"variable_defaults\": {},\n \"channel_specific_config\": {},\n \"router_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"analyzer_model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"workflow_enabled\": false,\n \"memory_enabled\": true,\n \"current_time\": {\n \"enabled\": true,\n \"timezone\": \"<string>\"\n },\n \"kb_clearance_level\": 123,\n \"kb_audience_tags\": [\n \"<string>\"\n ],\n \"tool_refs\": [\n {\n \"id\": \"<string>\",\n \"slug\": \"<string>\",\n \"output_bindings\": {},\n \"input_defaults\": {}\n }\n ],\n \"knowledge_base_refs\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"clearance_level\": 123\n }\n ],\n \"platform_tools\": {},\n \"continue_after_flow\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.featherhq.com/v1/assistants/{agent_id}/revisions/{revision_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"base_version\": 123,\n \"persona\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"system_context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\"\n }\n ],\n \"context_variables\": [\n {\n \"name\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"source\": \"system\",\n \"reask_cap\": null\n }\n ],\n \"variable_defaults\": {},\n \"channel_specific_config\": {},\n \"router_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"analyzer_model_settings\": {\n \"model\": \"<string>\",\n \"config\": {\n \"temperature\": 1,\n \"max_tokens\": 2,\n \"top_p\": 0.5,\n \"stop_sequences\": [\n \"<string>\"\n ],\n \"request_timeout_ms\": 10500,\n \"thinking_budget\": 2\n }\n },\n \"workflow_enabled\": false,\n \"memory_enabled\": true,\n \"current_time\": {\n \"enabled\": true,\n \"timezone\": \"<string>\"\n },\n \"kb_clearance_level\": 123,\n \"kb_audience_tags\": [\n \"<string>\"\n ],\n \"tool_refs\": [\n {\n \"id\": \"<string>\",\n \"slug\": \"<string>\",\n \"output_bindings\": {},\n \"input_defaults\": {}\n }\n ],\n \"knowledge_base_refs\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"clearance_level\": 123\n }\n ],\n \"platform_tools\": {},\n \"continue_after_flow\": true\n}"
response = http.request(request)
puts response.read_body{
"revision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"system_context_variables": [
{
"name": "<string>",
"type": "string",
"enum_values": [
"<string>"
],
"description": "<string>"
}
],
"description": "<string>",
"persona": "<string>",
"system_prompt": "<string>",
"context_variables": [
{
"name": "<string>",
"type": "string",
"source": "derived",
"enum_values": [
"<string>"
],
"reask_cap": 123,
"description": "<string>"
}
],
"variable_defaults": {},
"tool_refs": [
{}
],
"knowledge_base_refs": [
{}
],
"platform_tools": {},
"policies_enabled": true,
"policy_refs": [
{}
],
"channel_specific_config": {},
"router_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"reasoning_effort": "none",
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"analyzer_model_settings": {
"model": "<string>",
"config": {
"temperature": 1,
"max_tokens": 2,
"top_p": 0.5,
"stop_sequences": [
"<string>"
],
"reasoning_effort": "none",
"request_timeout_ms": 10500,
"thinking_budget": 2
}
},
"workflow_enabled": false,
"memory_enabled": true,
"current_time": {
"enabled": true,
"timezone": "<string>"
},
"kb_clearance_level": 123,
"kb_audience_tags": [
"<string>"
],
"continue_after_flow": true,
"voice_call_settings": {},
"created_by": "<string>",
"published_at": "2023-11-07T05:31:56Z"
},
"version": 0,
"prompt_findings": [
{
"severity": "error",
"rule_id": "<string>",
"category": "<string>",
"message": "<string>",
"node_id": "<string>",
"edge_id": "<string>",
"related_node_ids": [
"<string>"
],
"related_edge_ids": [
"<string>"
],
"source_span": {
"start_line": 123,
"start_col": 123,
"end_line": 123,
"end_col": 123,
"raw_text_excerpt": "<string>"
},
"suggested_fix": "<string>",
"related_spans": [
{
"start_line": 123,
"start_col": 123,
"end_line": 123,
"end_col": 123,
"raw_text_excerpt": "<string>"
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}