# Lift a ban

`POST https://rest.wordplus.cloud/wordplus/realtime/calls/{name}/unban`

Lets someone banned from a group call join it again.

In the packages: `realtime.call( name ).unban( user, { by? } )`.

## Parameters

| Name | In | |
|---|---|---|
| `name` (required) | path | The group call name, percent-encoded: `meeting:7` is `meeting%3A7`. |

## Request

```json
{
  "user": "43"
}
```

## Answer

Whether they were banned.

```json
{
  "ok": true,
  "unbanned": true
}
```

## 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/calls/meeting%3A7/unban' '{"user":"43"}'
```

**Node**

```js
const { unbanned } = await wordplus('POST', `/wordplus/realtime/calls/${encodeURIComponent('meeting:7')}/unban`, { user: '43' });
```

**Python**

```python
unbanned = wordplus("POST", f"/wordplus/realtime/calls/{quote('meeting:7', safe='')}/unban", {"user": "43"})["unbanned"]
```

**PHP**

```php
$unbanned = wordplus('POST', '/wordplus/realtime/calls/'.rawurlencode('meeting:7').'/unban', ['user' => '43'])['unbanned'];
```

**Go**

```go
answer, err := app.Request("POST", "/wordplus/realtime/calls/"+url.PathEscape("meeting:7")+"/unban", map[string]any{"user": "43"})
```

