---
title: "agent-locked"
description: "The agent is locked."
---

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

# agent-locked

`https://docs.ragna.io/errors/agent-locked`

## When it happens

A request changes the model, instructions, context, tools, default dataset, settings or knowledge files of a locked agent, or deletes a locked agent.

## Response

| Member   | Value           |
| -------- | --------------- |
| `status` | 409             |
| `title`  | Agent is locked |

```json
{
  "type": "https://docs.ragna.io/errors/agent-locked",
  "title": "Agent is locked",
  "status": 409
}
```

## What the client can do

Unlock the agent first. Changes to the name, description and mark stay allowed. See [Lock and approve](https://docs.ragna.io/agents#lock-and-approve).

Source: https://docs.ragna.io/errors/agent-locked/index.mdx
