Skip to Content
Levain LabsLevain Labs
API ReferenceAgents

Update Agent

Update an agent.

Update an agent.

PATCH
/api/v1/agents/{agent_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

agent_id*Agent Id

Header Parameters

X-API-Key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://api.levainlabs.com/api/v1/agents/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "name": "string",
  "slug": "string",
  "description": "string",
  "status": "string",
  "icon": "string",
  "color": "string",
  "kind": "customer",
  "engine": "string",
  "repo": "string",
  "personal": false,
  "config": {
    "max_budget": 1,
    "timeout_minutes": 1,
    "notify_on_run": true,
    "notify_on_message": true,
    "workspace_scope": "session",
    "interactive": true,
    "keep_warm_minutes": 1,
    "concurrent": true,
    "max_concurrent_runs": 1,
    "auto_improve": true,
    "github_issues_repo": "string",
    "runtime_id": "string",
    "memory_extraction": true
  },
  "workspace_integration_access": false,
  "created_at": "string",
  "updated_at": "string",
  "draft_version": 0,
  "latest_version": 0,
  "open_issue_count": 0
}