# Personalfragebogen abbrechen

`POST https://{tenant}.stamp.eu/rest/personnel_questionnaires/{questionnaire}/revoke`

„Fragebogen abbrechen“ (D15)

## Pfadparameter

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

## Request-Body

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `reason` | string \| null | nein |

## Antworten

### 200: `PersonnelQuestionnaireResource`

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `data` | object | ja |  |
| `data.id` | string | ja |  |
| `data.status` | `invited`, `in_progress`, `submitted`, `changes_requested`, `completed`, `revoked` | ja | Status of a personnel questionnaire (D3). Link expiry is deliberately not a status but derived from `token_expires_at` (`link_expired`), so an expired link can be rotated without losing data. invited → in_progress → submitted ⇄ changes_requested → completed; revoked at any time. |
| `data.group` | `review`, `completed`, `revoked`, `with_employee` | ja |  |
| `data.link_expired` | boolean | ja |  |
| `data.link_expires_at` | string | ja |  |
| `data.employee` | object | ja |  |
| `data.employee.id` | string | ja |  |
| `data.employee.name` | string \| null | ja |  |
| `data.employee.surname` | string \| null | ja |  |
| `data.employee.reference_no` | string \| null | ja |  |
| `data.employee.position` | string \| null | ja |  |
| `data.employee.employed_start` | string \| null | ja |  |
| `data.invite_channel` | string | ja |  |
| `data.employment_type` | `regular`, `marginal`, `short_term` \| null | ja |  |
| `data.flat_rate_taxation_planned` | boolean \| null | ja |  |
| `data.lock_version` | integer | ja |  |
| `data.progress_done` | integer | ja |  |
| `data.progress_total` | integer | ja |  |
| `data.current_step` | integer \| null | ja |  |
| `data.step_count` | integer | ja |  |
| `data.submitted_revision` | integer \| null | ja |  |
| `data.reminder_count` | integer | ja |  |
| `data.last_reminded_at` | string \| null | ja |  |
| `data.first_opened_at` | string \| null | ja |  |
| `data.last_activity_at` | string \| null | ja |  |
| `data.query_answered` | boolean | ja |  |
| `data.completed_at` | string \| null | ja |  |
| `data.revoked_at` | string \| null | ja |  |
| `data.revoke_reason` | string \| null | ja |  |
| `data.pdf_document_id` | string \| null | ja |  |
| `data.created_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. |
