PATCH
Update an agent

Authorizations

Authorization
string
header
required

A project API key, alt_live_… or alt_test_….

Path Parameters

id
string
required
Example:

"agent_0123456789abcdef01234567"

Body

application/json
name
string
Required string length: 1 - 100
instructions
string
Maximum string length: 32000
greeting
string
Maximum string length: 500
model
string
voice
enum<string>
default:af_heart
Available options:
af_alloy,
af_aoede,
af_bella,
af_heart,
af_jessica,
af_kore,
af_nicole,
af_nova,
af_river,
af_sarah,
af_sky,
am_adam,
am_echo,
am_eric,
am_fenrir,
am_liam,
am_michael,
am_onyx,
am_puck,
am_santa,
bf_alice,
bf_emma,
bf_isabella,
bf_lily,
bm_daniel,
bm_fable,
bm_george,
bm_lewis
tools
enum<string>[]

calendar (needs end-customer Google/Microsoft calendar connections) and transfer (arrives with voice calls) aren't available for hosted agents yet (tool_not_available). knowledge_search searches the agent's knowledge files; channel_post posts to a channel connected for the agent's account.

Available options:
send_text,
call,
email,
channel_post,
calendar,
web_fetch,
web_search,
knowledge_search,
ask_human,
transfer
autonomy
enum<string>

What the agent may do on its own: draft (writes, never sends), ask (asks a human first), tell (acts, then tells), limits (acts within set limits). Payments always wait for a human.

Available options:
draft,
ask,
tell,
limits
transfer_targets
string[]
Maximum array length: 20
business_hours
object | null
metadata
object
runtime
string
default:allternit

The runtime that runs the agent. Platform agents run on Allternit's hosted runtime, so the only value is allternit (the default; an alias is stored as allternit). Any other runtime from GET /api/v1/runtimes runs only on a computer: 422 runtime_not_available (create the agent in the Allternit app instead); an unknown id is 422 runtime_unknown. Saves without it are never refused for it.

Example:

"allternit"

access
enum<string> | null

How the agent's brain is paid for.

Available options:
plan,
key,
local,
credits
agent_view
object | null

How the agent's thread is shown. The request may also call it agentView.

Response

The updated agent.

id
string
required
object
string
required
Allowed value: "agent"
account_id
string
required
name
string
required
instructions
string
required
greeting
string
required
model
string
required
voice
enum<string>
default:af_heart
required
Available options:
af_alloy,
af_aoede,
af_bella,
af_heart,
af_jessica,
af_kore,
af_nicole,
af_nova,
af_river,
af_sarah,
af_sky,
am_adam,
am_echo,
am_eric,
am_fenrir,
am_liam,
am_michael,
am_onyx,
am_puck,
am_santa,
bf_alice,
bf_emma,
bf_isabella,
bf_lily,
bm_daniel,
bm_fable,
bm_george,
bm_lewis
tools
enum<string>[]
required

calendar (needs end-customer Google/Microsoft calendar connections) and transfer (arrives with voice calls) aren't available for hosted agents yet (tool_not_available). knowledge_search searches the agent's knowledge files; channel_post posts to a channel connected for the agent's account.

Available options:
send_text,
call,
email,
channel_post,
calendar,
web_fetch,
web_search,
knowledge_search,
ask_human,
transfer
autonomy
enum<string>
required

What the agent may do on its own: draft (writes, never sends), ask (asks a human first), tell (acts, then tells), limits (acts within set limits). Payments always wait for a human.

Available options:
draft,
ask,
tell,
limits
transfer_targets
string[]
required
business_hours
object | null
required
metadata
object
required
runtime
string
default:allternit
required

The runtime that runs the agent. Platform agents run on Allternit's hosted runtime, so the only value is allternit (the default; an alias is stored as allternit). Any other runtime from GET /api/v1/runtimes runs only on a computer: 422 runtime_not_available (create the agent in the Allternit app instead); an unknown id is 422 runtime_unknown. Saves without it are never refused for it.

Example:

"allternit"

access
enum<string> | null
required

How the agent's brain is paid for.

Available options:
plan,
key,
local,
credits
agent_view
object | null
required

How the agent's thread is shown. The request may also call it agentView.

status
enum<string>
required

ready once the project's hosted runtime holds the agent.

Available options:
pending,
ready
created_at
string<date-time>
required
updated_at
string<date-time>
required