# Generierung vorschauen

`POST https://{tenant}.stamp.eu/rest/roster_templates/{rosterTemplate}/preview`

Dry-run preview of what a rotation generation would produce,
including a coverage comparison against shift requirements

## Pfadparameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `rosterTemplate` | string | ja | The roster template ID |

## Request-Body

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `start_date` | string | ja |
| `employee_groups` | string[][] \| null | nein |

## Antworten

### 200

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `data` | object[] | ja |
| `data[].group` | string \| `` | ja |
| `data[].employee_id` | string | ja |
| `data[].date` | string | ja |
| `data[].shift_id` | string \| null | ja |
| `data[].start_time` | string \| null | ja |
| `data[].end_time` | string \| null | ja |
| `coverage` | object[] | ja |
| `coverage[].date` | string | ja |
| `coverage[].shift_id` | string | ja |
| `coverage[].work_area_id` | string | ja |
| `coverage[].assigned` | integer | ja |
| `coverage[].open` | integer | ja |
| `coverage[].min_count` | integer | ja |
| `coverage[].optimal_count` | string | ja |
| `coverage[].required_skills` | string | ja |
| `coverage[].skill_gaps` | object[] | ja |
| `coverage[].skill_gaps[].skill_id` | string | ja |
| `coverage[].skill_gaps[].name` | string | ja |
| `coverage[].skill_gaps[].min_level` | string | ja |
| `coverage[].skill_gaps[].required_count` | string | ja |
| `coverage[].skill_gaps[].required` | string \| null \| object | ja |
| `coverage[].skill_gaps[].qualified` | integer | ja |
| `coverage[].skill_gaps[].missing` | object \| null | ja |
| `coverage[].status` | `understaffed`, `skill_gap`, `overstaffed`, `ok` | ja |

### 401: Unauthenticated

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

### 404: Not found

| 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. |
