# Wiedereintritt erfassen

`POST https://{tenant}.stamp.eu/rest/employees/{employee}/employment_periods`

Record a re-entry (new employment period)

## Pfadparameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `employee` | string | ja | The employee ID |

## Request-Body

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `started_on` | string | ja |
| `reference_no` | string \| null | nein |
| `reactivate_login` | boolean | nein |

## Antworten

### 201: `EmployeeResource`

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `data` | object | ja |  |
| `data.id` | string | ja |  |
| `data.code` | string | ja |  |
| `data.name` | string | ja |  |
| `data.surname` | string | ja |  |
| `data.gender` | `male`, `female`, `diverse`, `undetermined`, `not_specified` \| null | ja |  |
| `data.birthday` | string \| null | ja |  |
| `data.working_hours` | string | ja |  |
| `data.vacation_days` | number | ja |  |
| `data.employed_start` | string \| null | ja |  |
| `data.employed_end` | string \| null | ja |  |
| `data.employment_status` | `employed`, `departed`, `upcoming` | ja | Abgeleiteter Beschäftigungsstatus (OpenSpec `employment-periods`, Entscheidung 2), berechnet aus dem jüngsten Zeitraum und dem heutigen Tag in der Tenant-Zeitzone; nie gespeichert. - `Employed`: jüngster Zeitraum offen oder `ended_on` heute oder später - `Departed`: jüngster Zeitraum endete vor heute - `Upcoming`: jüngster Zeitraum beginnt in der Zukunft |
| `data.unit` | object \| null | nein |  |
| `data.unit.id` | string | ja |  |
| `data.unit.name` | string | ja |  |
| `data.unit.parent_id` | string \| null | ja |  |
| `data.unit.permissions` | object | ja |  |
| `data.unit.children` | object[] | nein |  |
| `data.unit.created_at` | string \| null | ja |  |
| `data.unit.updated_at` | string \| null | ja |  |
| `data.location` | object \| null | nein |  |
| `data.location.id` | string | ja |  |
| `data.location.name` | string | ja |  |
| `data.location.phone` | string | ja |  |
| `data.location.address` | string | ja |  |
| `data.location.address_additional` | string | ja |  |
| `data.location.city` | string | ja |  |
| `data.location.postal_code` | string | ja |  |
| `data.location.state_region` | string | ja |  |
| `data.location.country` | string | ja |  |
| `data.location.timezone` | string | ja |  |
| `data.location.establishment_id` | string \| null | ja |  |
| `data.location.establishment` | object \| null | ja |  |
| `data.location.holidays` | object[] | nein |  |
| `data.location.employees_count` | integer | nein |  |
| `data.location.created_at` | string \| null | ja |  |
| `data.location.updated_at` | string \| null | ja |  |
| `data.department` | object \| null | nein |  |
| `data.department.id` | string | ja |  |
| `data.department.name` | string | ja |  |
| `data.department.description` | string | ja |  |
| `data.department.created_at` | string \| null | ja |  |
| `data.department.updated_at` | string \| null | ja |  |
| `data.cost_center` | object \| null | nein |  |
| `data.cost_center.id` | string | ja |  |
| `data.cost_center.code` | string | ja |  |
| `data.cost_center.name` | string | ja |  |
| `data.cost_center.description` | string | ja |  |
| `data.cost_center.created_at` | string \| null | ja |  |
| `data.cost_center.updated_at` | string \| null | ja |  |
| `data.position` | string \| null | ja |  |
| `data.avatar_url` | string \| null | ja |  |
| `data.email` | string \| null | nein |  |
| `data.locale` | `de`, `en`, `tr`, `fr`, `es`, `it`, `ch`, `nl`, `sq` \| null | nein |  |
| `data.private_email` | string \| null | ja |  |
| `data.phone` | string \| null | ja |  |
| `data.emergency_contact_name` | string \| null | ja |  |
| `data.emergency_contact_relation` | string \| null | ja |  |
| `data.emergency_contact_phone` | string \| null | ja |  |
| `data.role` | string \| null | nein |  |
| `data.role_display_name` | string \| null | nein |  |
| `data.active` | boolean | ja |  |
| `data.uses_projects` | boolean \| null | ja |  |
| `data.reference_no` | string \| null | ja |  |
| `data.salary_type_work` | string \| null | ja |  |
| `data.salary_type_overtime` | string \| null | ja |  |
| `data.include_in_export` | boolean | ja |  |
| `data.time_account_enabled` | boolean | ja |  |
| `data.weekly_hours_limit` | string \| null | ja |  |
| `data.holiday_auto_compensation` | boolean | ja |  |
| `data.latest_overtime_account` | object \| null | ja |  |
| `data.latest_overtime_account.year_month` | string | ja |  |
| `data.latest_overtime_account.balance_ms` | string | ja |  |
| `data.latest_overtime_account.earned_ms` | string | ja |  |
| `data.work_area_ids` | string[] | nein |  |
| `data.onboarding_pending` | boolean | ja | Personalfragebogen offen (D13/D15): Hinweis in Liste und Detailseite, kein Exportausschluss |
| `data.onboarding` | object | nein |  |
| `data.onboarding.has_reference_no` | boolean | ja |  |
| `data.onboarding.has_email` | boolean | ja |  |
| `data.onboarding.has_schedule_model` | boolean | ja |  |
| `data.onboarding.has_holiday_calendar` | boolean | ja |  |
| `data.onboarding.has_payroll_data` | boolean | ja |  |
| `data.onboarding.personnel_questionnaire` | object \| null | ja |  |
| `data.has_exports` | boolean | nein |  |
| `data.employment_periods` | object[] | nein |  |
| `data.employment_periods[].id` | string | ja |  |
| `data.employment_periods[].started_on` | string | ja |  |
| `data.employment_periods[].ended_on` | string \| null | ja |  |
| `data.employment_periods[].end_reason` | `resignation`, `termination`, `mutual`, `fixed_term`, `retirement`, `death`, `deleted`, `other` \| null | ja |  |
| `data.employment_periods[].note` | string \| null | ja |  |
| `data.reference_no_history` | object[] | nein |  |
| `data.reference_no_history[].id` | string | ja |  |
| `data.reference_no_history[].reference_no` | string | ja |  |
| `data.reference_no_history[].valid_from` | string | ja |  |
| `data.reference_no_history[].valid_until` | string \| null | ja |  |
| `data.reference_no_history[].reason` | string \| null | ja |  |
| `data.reference_no_history[].changed_by_name` | string \| null | ja |  |
| `data.created_at` | string \| null | ja |  |
| `data.updated_at` | string \| null | ja |  |

### 401: Unauthenticated

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

### 403: Authorization error

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