Skip to main content
PATCH
Partially update a sub-agent

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Path Parameters

subAgentId
string
required

ID of the sub-agent.

Body

Partial update of a sub-agent. Only the fields provided are changed, the others keep their current value. Send an empty string to clear avatar or model. Lists and dictionaries are replaced as a whole.

name
string | null

Technical name, in snake_case. Must not start with subagent_.

Required string length: 2 - 64
Pattern: ^[a-z][a-z0-9_]*$
displayName
string | null

Human-readable name

Required string length: 1 - 128
description
string | null

Tells the agent when to delegate to this sub-agent

Required string length: 1 - 1000
avatar
string | null

Avatar identifier (av_XXXX). Empty string to remove it.

Maximum string length: 32
systemPrompt
string | null

Instructions the sub-agent follows

Required string length: 1 - 50000
model
string | null

Model the sub-agent runs on. Empty string to go back to the platform default.

Maximum string length: 64
toolIds
string[] | null

Tools the sub-agent can call itself, 20 at most. Replaces the whole list; send [] to remove every tool.

Maximum array length: 20
params
object | null

Values injected into the system prompt. Replaces the whole dictionary.

timeout
integer<int32> | null

Call timeout in seconds (1-600)

Required range: 1 <= x <= 600
maxDurationS
integer<int32> | null

Maximum processing time per message in seconds (0-600). 0 means unlimited.

Required range: 0 <= x <= 600
inactivityExpirationMin
integer<int32> | null

Minutes of inactivity after which the delegated conversation expires

Required range: 1 <= x <= 10080
hardDeadlineUtc
string<date-time> | null

Absolute end of the delegated conversation, UTC

tags
string[] | null

Free labels. Replaces the whole list.

Response

Success

Full configuration of a sub-agent. Workspace files, code execution and the per-message command are managed from the Starleads interface and are not exposed here.

id
string | null

Sub-agent identifier

name
string | null

Technical name, in snake_case. The agent delegates to it under the tool name subagent_{name}.

displayName
string | null

Human-readable name

description
string | null

Tells the agent when to delegate to this sub-agent

avatar
string | null

Avatar identifier (av_XXXX)

systemPrompt
string | null

Instructions the sub-agent follows

model
string | null

Model the sub-agent runs on

toolIds
string[] | null

Tools the sub-agent can call itself

params
object | null

Values injected into the system prompt

timeout
integer<int32>

Call timeout in seconds

maxDurationS
integer<int32>

Maximum processing time per message in seconds; past it the sub-agent answers with what it has. 0 means unlimited.

inactivityExpirationMin
integer<int32> | null

Minutes of inactivity after which the delegated conversation expires

hardDeadlineUtc
string<date-time> | null

Absolute end of the delegated conversation, UTC

tags
string[] | null

Free labels

createdAt
string<date-time>
updatedAt
string<date-time>