# Zugangsdaten vorschauen

`POST https://{tenant}.stamp.eu/rest/employees/credentials/preview`

Compute the planned logins without writing anything

## Request-Body

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `scope` | `missing`, `all`, `selected` | ja |  |
| `login_schema` | `reference_no`, `firstname.lastname`, `f.lastname`, `email`, `template` | ja | Strategy for deriving an employee's login code when bulk-generating credentials (e.g. after a DLS import). The actual derivation lives in {@see \App\Services\Credentials\LoginGenerator}. |
| `template` | string \| null | nein |  |
| `overwrite_existing_login` | boolean | nein |  |
| `send_email` | boolean | nein |  |
| `employee_ids` | string[] | nein |  |

## Antworten

### 200

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `data` | object[] | ja |
| `data[].employee_id` | string | ja |
| `data[].name` | string | ja |
| `data[].current_code` | string \| null | ja |
| `data[].login` | string \| null | ja |
| `data[].action` | string | ja |
| `data[].channel` | string | ja |
| `data[].issue` | string \| null | ja |

### 401: Unauthenticated

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 422: Validation error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Errors overview. |
| `errors` | object | ja | A detailed description of each field that failed validation. |
