Skip to main content
POST
Create or update an agent definition (AS17)

Body

application/json
doc
object
required

An ss.agent/1 document: {schema, name, description?, instructions, model {id: default | claude-sonnet-5-5 | claude-opus-5-5 | claude-haiku-5-5 | claude-sonnet-5 | claude-opus-5 (a gateway prefix allowed), effort: low | medium | high | xhigh | max, max_tokens?}, tools [selectors: fn.<app>.<name>, <family>:<effect>, a glob such as fea.* or solve_*, or one operation by its tool name or operation name], knowledge [project:<id>], approvals {read, compute, costly, write, external: allow | ask | deny}, budget {credits, tokens, wall_s, turns, cpu_s (reserved)}, notes?, and the reserved sections triggers (AS18), outputs (AS18), policy (AS19), evals (AS20), stored but not acted on}.

expected_version
integer
id
string
team
string
visibility
string

Response

The saved draft, its problems and its reserved sections

agent
object
problems
object[]
reserved
object[]