# Passwörter zurücksetzen

`PUT https://{tenant}.stamp.eu/rest/employees/passwords`

Sets a new password for employees and creates a reset_passwords entry
so users see a "change password" dialog on next login.

Body: { password: string, all: bool }
  all=true  → reset all employees except the requesting user
  all=false → reset only employees without a password (hash IS NULL)

## Request-Body

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `password` | string | ja |
| `all` | boolean | ja |

## Antworten

### 200

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `message` | string | ja |
| `count` | integer | 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. |
