# Arbeitsbescheinigung korrigieren

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

## Pfadparameter

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

## Antworten

### 201: `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. |
