# Create lot whitelist entries

`POST https://api.parklio.com/v2/lot-whitelists`

Adds up to 20 license plates to a lot's whitelist for a time window. While an entry is active, LPR cameras on the lot let the plate in (`access_decision` `triggered`, reason `whitelist`), and it can open [bound products](/api/endpoints/products-bind-license-for-product).

- Always send `lot_id`.
- Send **either** `end_time` (in the future) **or** `"is_unlimited": true`, not both.
- Plates are 3–16 characters, stored in uppercase without hyphens.
- The response has one item per plate. Keep each `license_id` to bind the plate to products, and check `success` on every item.

Entries become `expired` (checked hourly) after `end_time`. See the [Plate-based access](/guides/plate-based-access) guide.

**Auth:** `Authorization: Bearer <token>`

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `license_plates` | string[] | yes |  |
| `name` | string | no |  |
| `lot_id` | number | no |  |
| `start_time` | string | yes |  |
| `end_time` | string | no |  |
| `is_unlimited` | boolean | no |  |

```json
{
  "license_plates": [
    "DT-PLATE1",
    "DT-PLATE2",
    "DT-PLATE3"
  ],
  "name": "string",
  "lot_id": 1,
  "start_time": "2026-01-15T09:30:00.000Z",
  "end_time": "2026-01-15T09:30:00.000Z",
  "is_unlimited": false
}
```

## Responses

### 200

```json
{
  "success": true,
  "data": [
    {
      "success": true,
      "whitelist_id": 501,
      "license_id": 88,
      "plate": "ZG1234AB",
      "is_unlimited": 0
    },
    {
      "success": true,
      "whitelist_id": 502,
      "license_id": 89,
      "plate": "ST555CD",
      "is_unlimited": 0
    }
  ]
}
```

### 401 — Account user is not logged in and they should log in again.

```json
{
  "success": false,
  "errors": [
    {
      "code": 1,
      "message": "Unauthorized access."
    }
  ]
}
```

### 403 — User is trying to create an entity where end time is before start time.

```json
{
  "success": false,
  "errors": [
    {
      "code": 405,
      "message": "End time is before start time."
    }
  ]
}
```

### 404 — Resource that has been requested does not exist. User should not try to repeat this request.

```json
{
  "success": false,
  "errors": [
    {
      "code": 6,
      "message": "Resource not found."
    }
  ]
}
```

