Agents
Update an agent
PUT /v1/agents/{id}- Permission
write:configs- Tokens
- API key, CLI user token
Replace an API-managed agent definition. Edit git-managed definitions in their repository or unlink them first.
Path parameters
idstringrequired
{
}
{
}
1
import os
2
3
from ellipsis import (
4
AgentConfig,
5
AgentIdentity,
6
BudgetConfig,
7
ClaudeCodeConfig,
8
Ellipsis,
9
SessionConfig,
10
SessionConversationConfig,
11
)
12
13
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
14
15
result = client.agents.update(
16
"...",
17
AgentConfig(
18
ellipsis=AgentIdentity(name="check-tests", version="v1", enabled=True),
19
session=SessionConfig(
20
claude_code=ClaudeCodeConfig(
21
model="claude-opus-5-5",
22
prompt="Run the tests and report failures.",
23
),
24
environment="api-environment",
25
budget=BudgetConfig(session=3),
26
conversation=SessionConversationConfig(interactive=True),
27
),
28
),
29
)
30
print(result)
1
import { AgentKind, Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const request: Parameters<typeof client.agents.update>[1] = {
8
ellipsis: {
9
kind: AgentKind.Agent,
10
name: 'check-tests',
11
version: 'v1',
12
enabled: true,
13
},
14
session: {
15
claude_code: {
16
model: 'claude-opus-5-5',
17
prompt: 'Run the tests and report failures.',
18
},
19
environment: 'api-environment',
20
budget: { session: 3 },
21
conversation: { interactive: true },
22
},
23
};
24
25
const result = await client.agents.update('...', request);
26
console.log(result);
1
curl -X PUT "https://api.ellipsis.dev/v1/agents/{id}" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
3
-H "Content-Type: application/json" \
4
-d '{
5
"agent": {
6
"ellipsis": {
7
"kind": "agent",
8
"name": "check-tests",
9
"version": "v1",
10
"enabled": true,
11
"metadata": {
12
"labels": [],
13
"annotations": {}
14
}
15
},
16
"session": {
17
"claude_code": {
18
"model": "claude-opus-5-5",
19
"prompt": "Run the tests and report failures."
20
},
21
"environment": "api-environment",
22
"budget": {
23
"session": 3
24
},
25
"permissions": {
26
"github": null,
27
"ellipsis": null
28
},
29
"skills": [],
30
"conversation": {
31
"interactive": true
32
},
33
"metadata": {}
34
}
35
}
36
}'
Request
agentAgentConfig | SlackConfig | GithubConfig | LinearConfig | SentryConfigrequired
The agent's new definition, of the same kind as the agent. It replaces the whole previous definition.
Response
agentStandardAgent | SlackAgent | GithubAgent | LinearAgent | SentryAgentrequired
The agent.