# Add a rule to one of your bot's setups

`POST https://app.skylit.ai/api/nexus/v1/playbooks/{id}/rules`

API: Nexus.

The rule goes after the last one.

## Authentication

Send your Skylit API key as a bearer token: `Authorization: Bearer <key>`. No other header is accepted.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

## Request body

`application/json`

```json
{
  "label": "No news within 15 minutes"
}
```

## Example request

```bash
curl "https://app.skylit.ai/api/nexus/v1/playbooks/{id}/rules" \
  -H "Authorization: Bearer $SKYLIT_API_KEY"
```

## Responses

### 201

`{"rule": {...}}`.

### 403

`main_account_web_only`: your own account's setups and tags are changed only on skylit.ai, signed in as yourself.

### 404

`playbook_not_found`.
