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

# Habilitar/Desabilitar Herramienta

> Cambia el estado de habilitación de una herramienta.

## Endpoint

`PUT https://gateway.orkeia.ai/tools/{id}/enable`

**Autenticación**\
Requiere el encabezado `authorization:  <tu_token>`.

## Parámetros de Ruta

| Nombre | Tipo   | Obligatorio | Descripción                            | Ejemplo      |
| ------ | ------ | ----------- | -------------------------------------- | ------------ |
| id     | string | Sí          | Identificador único de la herramienta. | TOOL\_123456 |

## Cuerpo de la Solicitud (JSON)

```json theme={null}
{
  "enabled": true
}
```

## Ejemplo (cURL)

```bash theme={null}
curl -X PUT "https://gateway.orkeia.ai/tools/TOOL_123456/enable"   -H "authorization:  <tu_token>"   -H "Content-Type: application/json"   -d '{ "enabled": true }'
```

## Respuestas

### Response - Éxito

```json response theme={null}
{
  "status": "OK",
  "data": {
    "id": "TOOL_123456",
    "enabled": true
  }
}
```

### 500 — Error del Servidor

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Error del Cliente

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
