# Preview a bandwidth pooling change

`GET https://console.advinservers.com/api/v1/client/bandwidth-blocks/pooling/preview`

### Overview

Previews a bandwidth pooling change without applying it. Send `location_id`. If pooling is enabled, `cities` shows the usage assigned to each server after disabling it. If pooling is disabled, `stranded_blocks` lists the team's blocks assigned to servers in more than one location or team, which would no longer provide bandwidth after enabling it.

### Permissions

Requires the `network.read` (View networking) permission for the selected team. Resources outside that team return 404.

## Authorization

Send `Authorization: Bearer <token>` with the request. Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

## Query parameters

- `location_id` (integer, required): The location id ID.

## Response 200

The record, as a JSON object. There is no envelope.

- `location_id` (integer, required): The location id ID.
- `pooling` (boolean, required): The value of `pooling`.
- `cities` (object[], required): The value of `cities`.
  - `location_id` (integer, required): The location id ID.
  - `name` (string, required): The name shown to customers.
  - `servers` (object[], required): The value of `servers`.
    - `uuid` (string, required): The uuid UUID.
    - `name` (string, required): The name shown to customers.
    - `template_name` (string | null, required): What the dialog paints the machine with, the same as the dashboard.
    - `template_icon_url` (string | null, required): The value of `template_icon_url`.
    - `windows` (boolean, required): The value of `windows`.
    - `limit` (integer, required): The value of `limit`.
    - `usage` (integer, required): The value of `usage`.
    - `usage_after` (integer, required): The value of `usage_after`.
    - `shaped_after` (boolean, required): The value of `shaped_after`.
  - `usage` (integer, required): The value of `usage`.
  - `limit` (integer, required): The value of `limit`.
  - `bound_blocks` (integer, required): Blocks bound to this city, which stop covering anything the moment the pool is gone.
- `stranded_blocks` (object[], required): The value of `stranded_blocks`.
  - `uuid` (string, required): The uuid UUID.
  - `terabytes` (integer, required): The value of `terabytes`.
  - `remaining` (integer, required): The value of `remaining`.
  - `region_label` (string, required): The value of `region_label`.
  - `servers` (string[], required): The machines it covers, by name, so far as this reader may be told.
  - `servers_in_other_teams` (integer, required): The value of `servers_in_other_teams`.

```json
{
  "location_id": 3,
  "pooling": false,
  "cities": [],
  "stranded_blocks": []
}
```

## Errors

- `401`: The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- `403`: Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- `429`: Too many requests. The `Retry-After` header says how many seconds to wait. Limits are per account, so several keys on one account share them.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/bandwidth-blocks/pooling/preview?location_id=value' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
