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

# Enable/Disable Squad

> Changes the enablement status of a squad.

## Endpoint

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

**Authentication**\
Requires header `authorization:  <your_token>`.

## Path Parameters

| Name | Type   | Required | Description                    | Example     |
| ---- | ------ | -------- | ------------------------------ | ----------- |
| id   | string | Yes      | Unique identifier of the squad | SQUAD\_1234 |

## Request Body (JSON)

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

## Example (cURL)

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

## Responses

### Response - Success

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