Update a custom team subagent
curl --request PATCH \
--url https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "high"
}
'import requests
url = "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}"
payload = { "model": "high" }
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({model: 'high'})
};
fetch('https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}', 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://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}",
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([
'model' => 'high'
]),
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://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}"
payload := strings.NewReader("{\n \"model\": \"high\"\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://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"high\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}")
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 \"model\": \"high\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<unknown>",
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid subagent fields"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}Subagents
Update a custom team subagent
Updates supplied fields on a customer-defined subagent. Built-in and root agent IDs return 404.
PATCH
/
teams
/
{teamSlug}
/
subagents
/
{subagentId}
Update a custom team subagent
curl --request PATCH \
--url https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "high"
}
'import requests
url = "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}"
payload = { "model": "high" }
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({model: 'high'})
};
fetch('https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}', 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://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}",
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([
'model' => 'high'
]),
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://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}"
payload := strings.NewReader("{\n \"model\": \"high\"\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://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"high\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.felan.ai/api/v1/teams/{teamSlug}/subagents/{subagentId}")
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 \"model\": \"high\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<unknown>",
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid subagent fields"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}Authorizations
Team API key. Current keys retain the bzy_team_ compatibility prefix.
Path Parameters
Felan team slug shown in dashboard URLs and Team Settings
Minimum string length:
1Customer-defined custom subagent ID. Built-in and root agent IDs are not accepted.
Pattern:
^custom-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Body
application/json
Maximum string length:
100Maximum string length:
1024Maximum string length:
65536Inherit the team default, choose a portable model tier, or select an exact configured provider/model.
Available options:
inherit, xhigh, high, medium, low Example:
"high"
Response
Custom subagent updated
Show child attributes
Show child attributes
