> ## 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 Escuadrón

> Cambia el estado de habilitación de un escuadrón.

## Endpoint

`PUT https://gateway.orkeia.ai/squads/{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 del escuadrón | SQUAD\_1234 |

## Cuerpo de la Solicitud (JSON)

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

## Ejemplo (cURL)

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

## Respuestas

### Response - Éxito

```json response theme={null}
{
  "status": "OK",
  "data": {
    "id": "SQUAD_1234",
    "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
}
```
