> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repixa.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Agent

> Update an existing agent's configuration

# Update Agent

Updates an existing agent. Only fields you include in the request body are changed.

## Request

```bash theme={null}
PATCH https://api.repixa.io/v1/agents/{agentId}
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

### Path parameters

| Parameter | Type   | Description                |
| --------- | ------ | -------------------------- |
| `agentId` | string | The unique ID of the agent |

### Body

```json theme={null}
{
  "name": "Laura - Enterprise Demo",
  "sandbox_url": "https://new-sandbox.yourdomain.com",
  "status": "inactive"
}
```

| Field         | Type   | Description                   |
| ------------- | ------ | ----------------------------- |
| `name`        | string | New display name              |
| `sandbox_url` | string | Updated sandbox URL           |
| `persona`     | string | Updated custom persona prompt |
| `status`      | string | `active` or `inactive`        |

## Response `200`

```json theme={null}
{
  "id": "agt_01hx4k2m9n3p",
  "name": "Laura - Enterprise Demo",
  "sandbox_url": "https://new-sandbox.yourdomain.com",
  "status": "inactive",
  "created_at": "2026-04-01T10:00:00Z",
  "updated_at": "2026-05-20T16:00:00Z"
}
```
