PUT /agents/defaults
Set a default agent config.
Addressed by rung: the account rung (repository omitted) or a repository rung ("owner/name"); the config by id or by the agent's name. Returns the full resulting ladder. Refused for sandbox tokens (potentially prompt-injected code must not repoint the account's ambient default); an unknown or foreign repository is a 404.
curl -X PUT "https://api.ellipsis.dev/v1/agents/defaults" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"config_id":"..."}'{
"account": "string",
"repositories": {}
}import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.agents.defaults.set("...")
print(result){
"account": "string",
"repositories": {}
}import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.agents.defaults.set({ config_id: '...' });
console.log(result);{
"account": "string",
"repositories": {}
}{
"properties": {
"config_id": {
"type": "string"
},
"repository": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"config_id"
],
"type": "object"
}{
"properties": {
"account": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"repositories": {
"additionalProperties": {
"type": "string"
},
"default": {},
"type": "object"
}
},
"type": "object"
}Request
config_idstringrequired
The config to make the default: a config id, or the agent's customer-unique `ellipsis.name`.
repositorystring
The rung to set: "owner/name" for a repo default; omit to set the account default. Unlike session start's silent ignore, an unknown or foreign repo here is a 404.