# Slow mode

`POST https://rest.wordplus.cloud/wordplus/realtime/streams/{name}/slow`

One message every `seconds` for everyone in the chat but its hosts and moderators, up to 300. 0 turns slow mode off.

In the packages: `realtime.stream( name ).slow( seconds )`.

## Parameters

| Name | In | |
|---|---|---|
| `name` (required) | path | The stream name, percent-encoded: `show:mugs` is `show%3Amugs`. |

## Request

```json
{
  "seconds": 30
}
```

## Answer

Slow mode as it is now.

```json
{
  "ok": true,
  "seconds": 30
}
```

## Refusals

- **400**: `bad_request`, `bad_room`: the request is not one the API takes. `reserved`: an event name kept for the room itself.
- **401**: `missing_signature`, `stale_signature` (a clock off by more than 5 minutes), `unknown_site`, `bad_signature` (a wrong secret, or a body or path other than the one signed).
- **403**: `not_included`: your plan does not include it.

## Examples

`wordplus()` (in Go `app.Request()`) signs and sends the request: https://docs.wordplus.cloud/api/signing/ has it in each language.

**curl**

```bash
wordplus POST '/wordplus/realtime/streams/show%3Amugs/slow' '{"seconds":30}'
```

**Node**

```js
await wordplus('POST', `/wordplus/realtime/streams/${encodeURIComponent('show:mugs')}/slow`, { seconds: 30 });
```

**Python**

```python
wordplus("POST", f"/wordplus/realtime/streams/{quote('show:mugs', safe='')}/slow", {"seconds": 30})
```

**PHP**

```php
wordplus('POST', '/wordplus/realtime/streams/'.rawurlencode('show:mugs').'/slow', ['seconds' => 30]);
```

**Go**

```go
_, err := app.Request("POST", "/wordplus/realtime/streams/"+url.PathEscape("show:mugs")+"/slow", map[string]any{"seconds": 30})
```

