# Arbeitsbescheinigung ändern

`PUT https://{tenant}.stamp.eu/rest/employees/{employee}/employment_certificates/{employmentCertificate}`

## Pfadparameter

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

## Request-Body

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `requested_by` | `agency`, `employee` | nein | Who requested an employment certificate (§ 312 Abs. 1 SGB III), `employment_certificates.requested_by`. |
| `request_options` | object | nein |  |
| `request_options.earnings_24_months` | boolean | nein |  |
| `request_options.period_from` | string \| null | nein |  |
| `request_options.period_to` | string \| null | nein |  |
| `manual_inputs` | object | nein | Field key (Vordruckziffer) => value; `null` stores an explicitly empty value, `reset_keys` restore the derived value or the register default. |
| `reset_keys` | string[] | nein |  |

## Antworten

### 200: `EmploymentCertificateDraftResource`

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `data` | object | ja |  |
| `data.id` | string | ja |  |
| `data.employee_id` | string | ja |  |
| `data.employment_period_id` | string | ja |  |
| `data.type` | `sgb3_312`, `sgb3_312a` | ja | Type of an employment certificate (Arbeitsbescheinigung), `employment_certificates.type`. |
| `data.status` | `draft`, `issued`, `superseded`, `cancelled` | ja | Lifecycle of an employment certificate, `employment_certificates.status`. |
| `data.version` | integer | ja |  |
| `data.supersedes_id` | string \| null | ja |  |
| `data.requested_by` | `agency`, `employee` | ja | Who requested an employment certificate (§ 312 Abs. 1 SGB III), `employment_certificates.requested_by`. |
| `data.request_options` | object | ja |  |
| `data.request_options.earnings_24_months` | boolean | ja |  |
| `data.request_options.period_from` | string \| null | ja |  |
| `data.request_options.period_to` | string \| null | ja |  |
| `data.schema_version` | string | ja |  |
| `data.document_id` | string \| null | ja |  |
| `data.file_name` | string \| null | ja |  |
| `data.issued_at` | string \| null | ja |  |
| `data.issued_by` | object \| null | ja |  |
| `data.issued_by.id` | string | ja |  |
| `data.issued_by.name` | string | ja |  |
| `data.cancelled_at` | string \| null | ja |  |
| `data.cancel_reason` | string \| null | ja |  |
| `data.created_at` | string | ja |  |
| `data.updated_at` | string | ja |  |
| `data.draft` | object | ja |  |
| `data.draft.schema_version` | string | ja |  |
| `data.draft.fields` | object | ja |  |
| `data.draft.messages` | object[] | ja |  |
| `data.draft.has_errors` | boolean | 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. |
