> ## 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 Ferramenta

> Altera o status de habilitação de uma ferramenta.

## Endpoint

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

**Autenticação**\
Requer cabeçalho `authorization:  <seu_token>`.

## Parâmetros de Caminho

| Nome | Tipo   | Obrigatório | Descrição                          | Exemplo      |
| ---- | ------ | ----------- | ---------------------------------- | ------------ |
| id   | string | Sim         | Identificador único da ferramenta. | TOOL\_123456 |

## Corpo da Requisição (JSON)

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

## Exemplo (cURL)

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

## Respostas

### Response - Success

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

### 500 — Server Error

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

### 400 — Client Error

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